package com.example.demo.mapper;

import com.example.demo.pojo.Dto.OrderDto;
import com.example.demo.pojo.Order;
import com.example.demo.pojo.OrderItem;
import com.sun.org.apache.xpath.internal.operations.Or;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderMapper {
    public List<Order> selectByUid(int uid);
    public Map<String,Object> selectOderAll(@Param("uid")int uid);
    public List<Order> selectOrder(@Param("uid")int uid);
    public List<Integer> selectOrderParam(@Param("uid")int uid);
    public Order selectByOrderNo(String orderNo);
    public List<OrderDto> selectOrderItem(int id);
    public int cancelOrder(@Param("orderno") String orderno);
    public int insertOrder(Order order);
    public List<OrderItem> findByIds(int[] ids);
    public int insertOrderItem(List<OrderItem> list);
    public int deleteCart(int[] ids);
    public int updateOrder(String orderno);
}
